extends "../cTDW_5_1/cTDW_5_1.gd"
func _info():
	pass

func _connect():
	._connect()
var baseId = ""
func _extInit():
	._extInit()

	lv = 4
	attCoe.atk *=1.5
	attCoe.maxHp *= 1.5
	attAdd.maxHpL = 0.2
	attCoe.def = 120 / 15.0 / 4.0
	attCoe.mgiDef = 120 / 16.6 / 4.0
	addCdSkill("dw2",9)
	addSkillTxt("坚毅：[主动]为一格范围内队友和自己添加护盾[护盾值：生命上限5%][cd:9秒][被动]生命提升20%")

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "dw2":
		var chas = getAllChas(2)
		for i in chas:
			if abs(i.cell.x - cell.x) <=1 && abs(i.cell.y - cell.y) <=1:
				if i.has_method("changeShield"):
					i.changeShield(att.maxHp*0.05)